#@cmsLayout()

#define cmsContent()
<div class="cms-breadcrumb">
	<i class="layui-icon layui-icon-flag"></i>
	<span class="layui-breadcrumb">
	  	<a href="">权限管理</a>
	  	<a><cite>权限管理</cite></a>
	</span>
</div>

<div class="body-card layui-card">
	<div class="text-right">
		<a class="pjax-a layui-btn" href="javascript:;" onclick="ajaxReload('#(ctx)/cmsPerm/reloadPerm')">一键同步所有权限</a>
	</div>
	<table class="layui-table">
	  	<colgroup>
	    	<col width="80">
	    	<col width="180">
	    	<col>
	    	<col width="300">
	    	<col width="80">
	    	<col width="100">
	  	</colgroup>
	 	<thead>
	    	<tr>
	    		<th>序号</th>
	      		<th>请求路径</th>
	      		<th>备注</th>
	      		<th>所属类</th>
	      		<th>状态</th>
	      		<th>操作</th>
	    	</tr> 
	  	</thead>
	  	<tbody>
	  		#for(x : permissionList)
	    	<tr>
	      		<td>#(for.count)</td>
	      		<td>#(x.actionKey)</td>
	      		<td>#(x.remark)</td>
	      		<td>#(x.controller)</td>
	      		<td>#status(x.status)</td>
	      		<td>
	      			<a class="pjax-a layui-btn layui-btn-xs" href="#(ctx)/cmsPerm/enterPermEdit/#(x.id)" title="编辑">
	      				<i class="layui-icon layui-icon-edit"></i>
	      			</a>
	      			<a onclick="ajaxDelete('#(ctx)/cmsPerm/deletePerm/#(x.id)')" class="layui-btn layui-btn-xs layui-btn-danger" title="删除" href="javascript:;">
	      				<i class="layui-icon layui-icon-delete"></i>
	      			</a>
	      		</td>
	    	</tr>
	    	#end
	  	</tbody>
	</table>
</div>
#@jsInit()
#end